﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlSupport.ascx.cs" Inherits="Controls_ControlSupport" %>
<%@ Import Namespace="webapp4U" %>
<%@ Register Namespace="webapp4U.UI" TagPrefix="webapp4U" %>

<script type="text/javascript">
    window.addEvent('domready',function() {
      $$('#faqs h3').each(function(header,i) {
        var state = false, answer = header.getNext('div');
        answer.slide('out');
        header.addEvent('click',function(e) {
          state = !state;
          answer.slide(state ? 'in' : 'out');
          header[(state ? 'add' : 'remove') + 'Class']('active');
        });
        answer.setStyles({
          overflow: '',
          height: 'auto'
        });
      });
    });
</script>

<%--<asp:UpdatePanel ID="UserUpdatePanel" runat="server" UpdateMode="Conditional">
    <ContentTemplate>--%>
        <div class="title_main"><%=ResourceManager.GetString("FAQ_Title")%></div>
              <div class="bg_under_title clearfix">
                   <div id="faqs">
                    <asp:Repeater runat="server" ID="rptSupport">
                         <ItemTemplate>
                         
                         <h3><%# Eval("Questions")%></h3>
                          <div>
                              <p>
                                <%# Eval("Answer")%>
                              </p>
                          </div>
                          
                        </ItemTemplate>
                    </asp:Repeater>                            
                  </div>
                  <div align="center">
                    <asp:Panel ID="DisplayPager" Visible="True" runat="server">
                        <div align="center">
                            <table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
                                <tr>
                                    <td valign="middle" align="center">
                                        <webapp4U:Pager ID="Pager" runat="server" />
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </asp:Panel>
                </div>        
            </div>
              
    </ContentTemplate>
</asp:UpdatePanel>